package a.j;

import a.c.d;
import a.c.e;
import a.c.k;
import a.c.m;
import a.c.s;
import a.c.w;
import a.f.c.i;
import a.f.sc;
import a.i.x;
import a.j.a.j;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class dc
  implements x.a_, s
{
  private static final x.a_ a = new sc();
  public static boolean b;
  
  public a.c.q a(Object paramObject)
  {
    if ((paramObject instanceof g)) {
      return new g((g)paramObject);
    }
    return new g();
  }
  
  public e a(a.c.q paramq, Object paramObject)
  {
    boolean bool = ld.E;
    if ((bool) || ((paramObject instanceof e)))
    {
      e locale = (e)paramObject;
      if (bool) {
        break label65;
      }
      if ((locale.g() instanceof g))
      {
        g localg = (g)locale.g();
        return ((g)paramq).a(a(localg.w(locale)));
      }
    }
    label65:
    return paramq.i();
  }
  
  public d a(a.c.q paramq, e parame1, e parame2, Object paramObject)
  {
    boolean bool = ld.E;
    if ((bool) || ((paramObject instanceof d)))
    {
      d locald = (d)paramObject;
      if (bool) {
        break label73;
      }
      if ((locald.c() instanceof g))
      {
        g localg = (g)locald.c();
        return ((g)paramq).a(parame1, parame2, a(localg.t(locald)));
      }
    }
    label73:
    return paramq.a(parame1, parame2);
  }
  
  protected tb a(tb paramtb)
  {
    return paramtb.e();
  }
  
  public e a(a.c.q paramq, e parame)
  {
    a.c.q localq = parame.g();
    if ((ld.E) || ((localq instanceof g)))
    {
      g localg = (g)paramq;
      return localg.a(a(((g)localq).w(parame)));
    }
    return a.a(paramq, parame);
  }
  
  protected ld a(ld paramld)
  {
    return paramld.m();
  }
  
  public d a(a.c.q paramq, e parame1, e parame2, d paramd)
  {
    a.c.q localq = paramd.c();
    if ((ld.E) || ((localq instanceof g))) {
      return ((g)paramq).a(parame1, parame2, a(((g)localq).t(paramd)));
    }
    return a.a(paramq, parame1, parame2, paramd);
  }
  
  public a.c.q a()
  {
    return new g();
  }
  
  public void a(a.c.q paramq1, a.c.q paramq2) {}
  
  public void a(a.c.q paramq1, a.c.q paramq2, Map paramMap1, Map paramMap2) {}
  
  public static class a_
    implements x.a_
  {
    private j a;
    private j b;
    private Map c;
    private int d;
    private x e;
    private final x.a_ f;
    public static boolean g;
    
    public a_(x.a_ parama_)
    {
      this.f = parama_;
      this.e = new x(this);
    }
    
    public d a(a.c.q paramq, e parame1, e parame2, d paramd)
    {
      return this.f.a(paramq, parame1, parame2, paramd);
    }
    
    public e a(a.c.q paramq, e parame)
    {
      return this.f.a(paramq, parame);
    }
    
    public void a(g paramg1, g paramg2)
    {
      x localx = new x(this);
      a(localx);
      localx.a(paramg1, paramg2);
    }
    
    public a.c.q a()
    {
      return this.f.a();
    }
    
    public x b()
    {
      return this.e;
    }
    
    public void a(x paramx)
    {
      this.e = paramx;
    }
    
    public void a(a.c.q paramq1, a.c.q paramq2, Map paramMap1, Map paramMap2)
    {
      this.f.a(paramq1, paramq2, paramMap1, paramMap2);
      a(paramq1, paramMap1, paramMap2);
      if (!ld.E)
      {
        if (this.d == 0)
        {
          this.a = null;
          this.b = null;
        }
      }
      else {
        this.c = null;
      }
    }
    
    public void a(a.c.q paramq1, a.c.q paramq2)
    {
      boolean bool = ld.E;
      this.f.a(paramq1, paramq2);
      if (!bool)
      {
        if (this.d == 0)
        {
          this.c = new HashMap();
          this.b = a(paramq1);
          this.a = a(paramq2);
        }
      }
      else if (((bool) || (this.b != null)) && (this.a == null) && ((bool) || ((paramq1 instanceof g)))) {
        ((g)paramq1).a(this.a = new j(paramq2));
      }
    }
    
    private void a(a.c.q paramq, Map paramMap1, Map paramMap2)
    {
      boolean bool2 = ld.E;
      boolean bool1 = ld.D;
      w localw = paramq.v();
      Object localObject1;
      Object localObject2;
      do
      {
        if (!localw.e()) {
          break;
        }
        localObject1 = localw.d();
        localObject2 = paramMap1.get(localObject1);
        if (bool1) {
          return;
        }
        if ((bool2) || (localObject2 != null)) {
          this.c.put(localObject1, localObject2);
        }
        localw.f();
      } while (!bool1);
      if ((!bool2) && (((!bool2) && ((this.b != null) && (bool2))) || ((this.a != null) && (b() != null))))
      {
        int i = 0;
        localObject1 = new ArrayList();
        localObject2 = paramq.v();
        e locale1;
        Object localObject3;
        do
        {
          do
          {
            if (!((w)localObject2).e()) {
              break;
            }
            locale1 = ((w)localObject2).d();
            localObject3 = (e)paramMap1.get(locale1);
            if (bool1) {
              return;
            }
            if (localObject3 != null)
            {
              if (bool2) {
                continue;
              }
              if (this.b.l(locale1))
              {
                if (bool2) {
                  continue;
                }
                if (!this.a.l((e)localObject3))
                {
                  ((List)localObject1).add(locale1);
                  i += locale1.c();
                  this.a.f((e)localObject3);
                  this.d += 1;
                  try
                  {
                    a(locale1, this.b, (e)localObject3, this.a);
                  }
                  finally
                  {
                    this.d -= 1;
                  }
                }
              }
            }
            ((w)localObject2).f();
          } while (!bool1);
        } while (bool2);
        if ((bool2) || (i > 0))
        {
          int j = 0;
          label518:
          do
          {
            if (j >= ((List)localObject1).size()) {
              break;
            }
            locale1 = (e)((List)localObject1).get(j);
            localObject3 = locale1.l();
            do
            {
              do
              {
                if (!((m)localObject3).e()) {
                  break label518;
                }
                d locald1 = ((m)localObject3).a();
                d locald2 = (d)paramMap2.get(locald1);
                if (bool1) {
                  break;
                }
                if (locald2 != null)
                {
                  if (bool2) {
                    continue;
                  }
                  if (this.b.e(locald1))
                  {
                    e locale2 = this.b.b(locald1);
                    e locale3 = this.b.c(locald1);
                    e locale4 = (e)this.c.get(locale2);
                    e locale5 = (e)this.c.get(locale3);
                    if (bool2) {
                      continue;
                    }
                    if ((locale4 != null) && (locale5 != null)) {
                      a(locald1, this.a, locald2, locale4, locale5);
                    }
                  }
                }
                ((m)localObject3).f();
              } while (!bool1);
              j++;
            } while (bool2);
          } while (!bool1);
        }
      }
    }
    
    protected void a(d paramd1, j paramj, d paramd2, e parame1, e parame2)
    {
      paramj.b(paramd2, parame1, parame2);
    }
    
    private j a(a.c.q paramq)
    {
      boolean bool = ld.E;
      j localj = null;
      if (!bool) {
        if ((paramq instanceof g)) {
          return ((g)paramq).K();
        }
      }
      if ((bool) || (j.a(paramq) != null)) {
        localj = j.a(paramq);
      }
      return localj;
    }
    
    protected void a(e parame1, j paramj1, e parame2, j paramj2)
    {
      a.c.q localq = paramj2.o(parame2);
      x localx = b(parame1, paramj1, parame2, paramj2);
      if (!ld.E) {
        if (localx.d() != this)
        {
          b_ localb_ = new b_(localx.d());
          localx.a(localb_);
          try
          {
            localx.a(paramj1.o(parame1), localq);
          }
          finally
          {
            localx.a(localb_.a);
          }
        }
      }
      localx.a(paramj1.o(parame1), localq);
    }
    
    protected x b(e parame1, j paramj1, e parame2, j paramj2)
    {
      return b();
    }
    
    private class b_
      implements x.a_
    {
      final x.a_ a;
      
      public d a(a.c.q paramq, e parame1, e parame2, d paramd)
      {
        return this.a.a(paramq, parame1, parame2, paramd);
      }
      
      public e a(a.c.q paramq, e parame)
      {
        return this.a.a(paramq, parame);
      }
      
      public a.c.q a()
      {
        return this.a.a();
      }
      
      public void a(a.c.q paramq1, a.c.q paramq2, Map paramMap1, Map paramMap2)
      {
        this.a.a(paramq1, paramq2, paramMap1, paramMap2);
        dc.a_.this.a(paramq1, paramMap1, paramMap2);
      }
      
      public void a(a.c.q paramq1, a.c.q paramq2)
      {
        this.a.a(paramq1, paramq2);
      }
      
      public b_(x.a_ parama_)
      {
        this.a = parama_;
      }
    }
  }
  
  public static class b_
    extends x.b_
  {
    private k c;
    private j d;
    public static boolean e;
    
    public b_()
    {
      this(new dc());
    }
    
    public b_(x.a_ parama_)
    {
      super();
    }
    
    protected void b(a.c.q paramq1, a.c.q paramq2)
    {
      boolean bool2 = ld.E;
      boolean bool1 = ld.D;
      super.b(paramq1, paramq2);
      j localj = a(paramq1);
      if (!bool2)
      {
        if (localj != null)
        {
          if (bool2) {
            break label61;
          }
          this.c = localj.h();
        }
      }
      else {
        if (!bool1) {
          break label60;
        }
      }
      this.c = paramq1.c(i.c);
      label60:
      label61:
      if (!bool2) {
        if (this.c == null)
        {
          this.c = a.i.q.a(Boolean.FALSE);
          if (!bool2) {
            if (!bool1) {
              return;
            }
          }
        }
        else
        {
          this.d = a(paramq2);
        }
      }
      if (this.d == null) {
        ((g)paramq2).a(this.d = new j(paramq2));
      }
    }
    
    public void a(a.c.q paramq1, a.c.q paramq2, Map paramMap1, Map paramMap2)
    {
      boolean bool2 = ld.E;
      boolean bool1 = ld.D;
      super.a(paramq1, paramq2, paramMap1, paramMap2);
      j localj = a(paramq1);
      k localk1;
      if ((bool2) || (localj != null))
      {
        localk1 = localj.f();
        localk2 = localj.g();
        if (!bool2) {
          if (!bool1) {
            break label78;
          }
        }
      }
      else
      {
        localk1 = paramq1.c(i.a);
      }
      k localk2 = paramq1.c(i.b);
      label78:
      if (!bool2)
      {
        if ((this.d != null) && ((bool2) || ((localk1 != null) && (localk2 != null))))
        {
          HashMap localHashMap1 = new HashMap();
          HashMap localHashMap2 = new HashMap();
          w localw = paramq1.v();
          e locale1;
          do
          {
            do
            {
              if (!localw.e()) {
                break;
              }
              locale1 = localw.d();
              localHashMap1.put(localk1.get(locale1), locale1);
              localw.f();
              if (bool2) {
                break label205;
              }
              if (bool1) {
                break label198;
              }
            } while (!bool1);
          } while (bool2);
          localw = paramq1.v();
          Object localObject;
          do
          {
            do
            {
              if (!localw.e()) {
                break;
              }
              locale1 = localw.d();
              localObject = localk2.get(locale1);
              localHashMap2.put(locale1, localHashMap1.get(localObject));
              localw.f();
              if (bool2) {
                break label283;
              }
              if (bool1) {
                break label276;
              }
            } while (!bool1);
          } while (bool2);
          localw = paramq1.v();
          do
          {
            if (!localw.e()) {
              break;
            }
            locale1 = localw.d();
            localObject = (e)localHashMap2.get(locale1);
            if (bool1) {
              return;
            }
            if ((bool2) || (localObject != null))
            {
              e locale2 = (e)paramMap1.get(locale1);
              if (bool2) {
                continue;
              }
              if (locale2 != null)
              {
                e locale3 = (e)paramMap1.get(localObject);
                if (bool2) {
                  continue;
                }
                if (locale3 != null) {
                  this.d.c(locale2, locale3);
                }
              }
            }
            localw.f();
          } while (!bool1);
        }
        this.d = null;
        if (bool2) {}
      }
      else
      {
        this.c = null;
      }
      label198:
      label205:
      return;
    }
    
    private j a(a.c.q paramq)
    {
      boolean bool = ld.E;
      j localj = null;
      if (!bool) {
        if ((paramq instanceof g)) {
          return ((g)paramq).K();
        }
      }
      if ((bool) || (j.a(paramq) != null)) {
        localj = j.a(paramq);
      }
      return localj;
    }
    
    protected void a(e parame1, e parame2)
    {
      super.a(parame1, parame2);
      boolean bool = this.c.getBool(parame1);
      if (bool) {
        this.d.e(parame2);
      }
    }
    
    protected void a(d paramd1, d paramd2)
    {
      super.a(paramd1, paramd2);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.dc

 * JD-Core Version:    0.7.0.1

 */